#include <QCoreApplication>
#include <FbFunction.h>
#include <QThread>

class   MySleep : public QThread
{
public:
    static void        m_sleep(unsigned long m)
    {
        msleep(m);
    }

};


int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    
    uchar *Framebuffer,*getframebuffer;
    getFramebuffer("/dev/fb0",getframebuffer,1024,768);

    InitFrameBuffer("/dev/fb1",Framebuffer,1024,768);

    while(1)
    {
        memcpy(Framebuffer,getframebuffer,1024*768*4);
        MySleep::m_sleep(17);
    }



    return a.exec();
}
